﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqToLfsWorld.Attributes
{
	/// <summary>
	/// Used to mark an ILfsWorldEntity property that it can be queried through the LfsWorldContext. 
	/// </summary>
	[global::System.AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
	internal sealed class PubstatQueryableAttribute : Attribute
	{
		/// <summary>
		/// Gets whether or not this property is required or not.
		/// </summary>
		public readonly bool Required = true;

		/// <summary>
		/// Initializes a new instance of the <see cref="PubstatQueryableAttribute"/> class.
		/// </summary>
		/// <param name="required">if set to <c>true</c> [required].</param>
		public PubstatQueryableAttribute(bool required)
		{
			Required = required;
		}
	}
}
